package com.mall.search.remote;

import com.mall.common.core.domain.Result;
import com.mall.search.common.domain.SkuEsModel;
//import com.mall.search.remote.factory.RemoteEsSaveFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

//@FeignClient(contextId = "EsSaveRemoteServer",value = "mall-search",fallbackFactory = RemoteEsSaveFallbackFactory.class)
@FeignClient(contextId = "EsSaveRemoteServer",value = "mall-search")
public interface EsSaveRemoteServer {
    /**
     * 将上架的sku信息保存到es中
     * @param
     * @return
     */
    @PostMapping("/es/save/saveSkuByPublish")
    public Result saveSkuByPublish(@RequestBody String jsonString) throws IOException;
}
